package com.logic.modular.game.player.bag.service.handler;

import com.logic.modular.game.player.bag.dto.UsePropDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource; /**
 * 消耗道具数量兑换道具到背包
 */@Service
public  class BaseHandler1 implements PropType2Handler {
    @Resource
    private BaseHandler baseHandler;

    @Override
    public void handler(UsePropDto dto) {
        baseHandler.tryObtainPropByProp(dto.getUid(), dto.getCorePropId(), dto.getNum());
    }
}
